import type { IAccountVo, IUserVo,ICigarBrand,ICigar } from "@/logic/globInterface/dataInterface";
import { SingletonTemplet } from "../utils/SingletonTemplet";
/**
 * 本地数据管理类
 */
export default class LocalData extends SingletonTemplet{
	/**
	 * 用户登陆帐号数据初始化
	 */
	
	public account:IAccountVo | null = null;
	/**
	 * 用户基本信息初始化
	 */
	public userVo:IUserVo | null = null;
	// 雪茄品牌信息
	public CigarBrand:ICigarBrand |null=null;
	//雪茄信息
	public Cigar:ICigar | null=null
	/**
	 * 响应数据
	 */
	onAttr(data:any){
		 if(!data.account){
				this.account = data.acccount as IAccountVo;
		 }
	}
	
}
export const storeData = LocalData.getInstance();
